package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.AgentRebateRuleInfo;
import com.weixing.mall.provider.model.vo.RuleInfoVo;

import java.util.List;

/**
 * <p>
 * 促销模块-代理商活动返利规则配置详情表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-16
 */
public interface AgentRebateRuleInfoMapper extends BaseMapper<AgentRebateRuleInfo> {

    List<RuleInfoVo> selectByRuleIdAndTreeDeep(Long ruleId, Integer level);

    void deleteByRuleId(Long id);

    List<RuleInfoVo> selectByRuleId(Long id);
}
